<?php
namespace app\admin\controller;

use think\Controller;
use think\Request;
use think\Db;

class Common extends Controller
{

    protected function returnJson($code = 200, $msg = '', $data = null)
    {
        return json([
            'code' => $code,
            'msg' => $msg,
            'data' => $data
        ]);
    }
}
